const state = {
	shopcardata: [
		{
			bigPhotoUrl: "//edu-image.nosdn.127.net/b67e7cf6-7362-4f11-8a6c-7e30b3ddbfac.jpg?imageView&quality=100&type=webp",
			description: "来自福布斯精英的25节金融思维课",
			id: 1003708063,
			price: 199,
			count: 1,
			isChecked:true,
			img: "https://edu-image.nosdn.127.net/a12090ea-6978-4e7a-bb7c-f7294094ab94.png?imageView&quality=100&crop=0_0_879_495&thumbna"
		},
		{
			bigPhotoUrl: "//edu-image.nosdn.127.net/5210e0b2-3fce-4bcc-a026-b99b706f1a03.jpg?imageView&quality=100&type=webp",
			description: "能帮你赚到钱的商业思维提升课",
			id: 1003608063,
			price: 99,
			count: 1,
			isChecked:false,
			img: "http://edu-image.nosdn.127.net/4db53305-28cd-49fb-9c40-25968a35a572.jpg?imageView&quality=100"
		}
	]
}

const mutations = {
	SET_SHOPCAR_DATA(state, val) {
         state.shopcardata.push(val)
	},
	DELETE_SHOPCART(state, val){
		state.shopcardata.splice(val,1)
	}
}

const actions = {

}

const getters = {}

export default {
	state,
	mutations,
	actions,
	getters,
	namespaced: true,
}
